home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0" encoding="EUC-KR"?>
- <!DOCTYPE modulesynopsis SYSTEM "../style/modulesynopsis.dtd">
- <?xml-stylesheet type="text/xsl" href="../style/manual.ko.xsl"?>
- <!-- English Revision: 1.3.2.5 -->
-
- <!--
- Copyright 2004 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- -->
-
- <modulesynopsis metafile="mod_file_cache.xml.meta">
-
- <name>mod_file_cache</name>
- <description>╕▐╕≡╕«┐í ┴ñ└√ ╞─└╧╡Θ└╗ ─│╜¼</description>
- <status>Experimental</status>
- <sourcefile>mod_file_cache.c</sourcefile>
- <identifier>file_cache_module</identifier>
-
- <summary>
-
- <note type="warning">
- └╠ ╕≡╡Γ└║ ┴╢╜╔╟╪╝¡ ╗τ┐δ╟╪╛▀ ╟╤┤┘. <module>mod_file_cache</module>╕ª
- ╗τ┐δ╟╧┐⌐ ╗τ└╠╞«╕ª ╛√╕┴└╕╖╬ ╕╕╡Θ▒Γ ╜▒▒Γ╢º╣«┐í └╠ ╣«╝¡╕ª
- ▓─▓─╚≈ └╨▒µ ╣┘╢⌡┤┘.
- </note>
-
- <p>░┼└╟ ║»╟╧┴÷ ╛╩░φ └┌┴╓ ┐Σ├╗╡╟┤┬ ╞─└╧└╗ <em>─│╜¼</em>┐í
- └·└σ╟╧┐⌐ ╝¡╣÷ ║╬╟╧╕ª ┴┘└╧ ╝÷ └╓┤┘. <module>mod_file_cache</module>┤┬
- └┌┴╓ ┐Σ├╗╡╟┤┬ <em>┴ñ└√</em> ╞─└╧└╗ ╡╬░í┴÷ ╣µ╜─└╕╖╬ ─│╜¼┐í
- └·└σ╟╤┤┘. ╝│┴ñ ┴÷╜├╛ε╕ª ╗τ┐δ╟╧┐⌐ <module>mod_file_cache</module>░í
- ╞─└╧└╗ ┐¡░φ(open) <code>mmap()</code>╟╥┴÷ ╛╞┤╧╕Θ ╞─└╧└╗
- ┐¡░φ <em>╞─└╧ ╟┌╡Θ</em>└╗ └·└σ╟╥┴÷ ░ß┴ñ╟╤┤┘. ╡╬ ╣µ╜─ ╕≡╡╬
- ╞─└╧└╗ ╝¡║±╜║╟╧▒Γ└º╟╪ ╟╩┐Σ╟╤ └█╛≈└╟ └╧║╬╕ª (╞»╚≈ ╞─└╧ └╘├Γ╖┬
- └█╛≈) ╞─└╧└╗ ┐Σ├╗╟╥ ╢º╕╢┤┘ ╕┼╣° ╟╧┤┬ ┤δ╜┼ ╝¡╣÷░í ╜├└█╟╥╢º
- ╟╤╣°╕╕ ╟╧┐⌐ ╝¡╣÷ ║╬╟╧░í ░¿╝╥╟╤┤┘.</p>
-
- <p>┴╓└╟: └╠ ╣µ╣²└║ CGI ╟┴╖╬▒╫╖Ñ└╠│¬ ╞»║░╟╤ │╗┐δ╟┌╡Θ╖»╕ª
- ┼δ╟╪ ╝¡║±╜║╟╧┤┬ ╞─└╧└╟ ╝¡║±╜║ ╝╙╡╡╕ª │⌠└╧ ╝÷ ╛°┤┘. └╠ ╣µ╣²└║
- ║╕┼δ ╛╞╞──í core │╗┐δ╟┌╡Θ╖»░í ╝¡║±╜║╟╧┤┬ └╧╣▌╞─└╧┐í╕╕
- └√┐δ╡╚┤┘.</p>
-
- <p>└╠ ╕≡╡Γ└║ ╛╞╞──í 1.3┐í └╓┤┬ <code>mod_mmap_static</code>
- ╕≡╡Γ└╟ ▒Γ┤╔└╗ ╚«└σ╟╤ ░ß░·┤┘.</p>
- </summary>
-
- <section id="using"><title>mod_file_cache ╗τ┐δ╟╧▒Γ</title>
-
- <p><module>mod_file_cache</module>┤┬ ┴╓╝¡╣÷ ╝│┴ñ┐í╝¡ <directive
- module="mod_file_cache">MMapFile</directive>░· <directive
- module="mod_file_cache">CacheFile</directive> ┴÷╜├╛ε╕ª ╗τ┐δ╟╧┐⌐
- ╝│┴ñ╟╤ ┴ñ└√ ╞─└╧╡Θ└╗ ─│╜¼┐í └·└σ╟╤┤┘.</p>
-
- <p>╕≡╡τ ╟├╖í╞√└╠ ╡╬ ┴÷╜├╛ε╕ª ╕≡╡╬ ┴÷┐°╟╧┤┬ ░═└║ ╛╞┤╧┤┘.
- ┐╣╕ª ╡Θ╛ε, └⌐╡╡┐∞┴ε┐δ ╛╞╞──í┤┬ ╟÷└τ <directive
- module="mod_file_cache">MMapStatic</directive> ┴÷╜├╛ε╕ª
- ┴÷┐°╟╧┴÷ ╛╩┴÷╕╕, AIX ░░└║ ┤┘╕Ñ ╟├╖í╞√└║ ╡╤ ╕≡╡╬╕ª ┴÷┐°╟╤┤┘.
- ┴÷┐°╟╧┴÷╛╩┤┬ ┴÷╜├╛ε╕ª ╗τ┐δ╟╥ ░µ┐∞ ╝¡╣÷ ┐└╖∙ ╖╬▒╫┐í ┐└╖∙╣«└╗
- │▓▒Σ┤┘. ┴÷┐°╟╧┴÷╛╩┤┬ ┴÷╜├╛ε╕ª ╗τ┐δ╟╪╡╡ ╝¡╣÷┤┬ ╡┐└█╟╧┴÷╕╕
- ╞─└╧└╗ ─│╜¼┐í └·└σ╟╧┴÷ ╛╩┤┬┤┘. ╡╬ ┴÷╜├╛ε╕ª ╕≡╡╬ ┴÷┐°╟╧┤┬
- ╟├╖í╞√└╗ ╗τ┐δ╟╤┤┘╕Θ ╛ε╢▓ ╣µ╜─└╠ ┤⌡ ┴┴└║┴÷ ╜╟╟Φ╟╪║╕╢≤.</p>
-
- <section><title>MMapFile ┴÷╜├╛ε</title>
-
- <p><module>mod_file_cache</module>└╟ <directive
- module="mod_file_cache">MMapFile</directive> ┴÷╜├╛ε┤┬
- ╝│┴ñ╟╤ ┴ñ└√ ╞─└╧╡Θ└╗ <code>mmap()</code> ╜├╜║┼█╚ú├Γ└╗
- ╗τ┐δ╟╧┐⌐ ╕▐╕≡╕«┐í ┤δ└└╟╤┤┘. ├╓╜┼ └»┤╨╜║╖∙ ┐ε┐╡├╝┴ª╢≤╕Θ
- ║╕┼δ └╠ ╜├╜║┼█╚ú├Γ└╠ └╓┴÷╕╕, ╛°┤┬ ┐ε┐╡├╝┴ª╡╡ └╓┤┘. ╢╟,
- <code>mmap()</code>╟╥ ╝÷ └╓┤┬ ╞─└╧ ┼⌐▒Γ┐═ ░│╝÷╕ª ╜├╜║┼█└╠
- ┴ª╟╤╟╥ ╝÷ └╓└╕╣╟╖╬ ╣╠╕« ╜╟╟Φ╟╪║╕┤┬ ░═└╠ ┴┴┤┘.</p>
-
- <p>╝¡╣÷┤┬ ╜├└█╟╥╢º┐═ └τ╜├└█╟╥╢º╕╕ <code>mmap()</code>╟╤┤┘.
- ▒╫╖í╝¡ ╞─└╧╜├╜║┼█┐í╝¡ ╟╪┤τ ╞─└╧┴▀ ╟╧│¬╢≤╡╡ ║»░µ╡╟╕Θ ╝¡╣÷╕ª
- └τ╜├└█<em>╟╪╛▀</em> ╟╤┤┘ (<a href="../stopping.html">┴▀┤▄░·
- └τ╜├└█</a> ╣«╝¡ ┬ⁿ░φ). ┤┘╜├ ╕╗╟╪╝¡ ╞─└╧└╠ ║»░µ╡╟╛·┤┬╡Ñ
- ╝¡╣÷╕ª └τ╜├└█╟╧┴÷ ╛╩└╕╕Θ ┐╧└ⁿ╚≈ └╠╗≤╟╧░╘ ┐Σ├╗└╗ ╝¡║±╜║╟╥┴÷╡╡
- ╕≡╕Ñ┤┘. └╠└ⁿ ╞─└╧└╗ ┴÷┐∞░φ(unlink) ▒╫ └┌╕«┐í ╗⌡╖╬┐ε ╞─└╧└╗
- ╕╕╡Θ┤┬ ╣µ╜─└╕╖╬ ╞─└╧└╗ ╝÷┴ñ╟╪╛▀ ╟╤┤┘. <code>rdist</code>│¬
- <code>mv</code>┐═ ░░└║ ┤δ┤┘╝÷└╟ ╡╡▒╕░í └╠╖▒ ╣µ╜─└╕╖╬ ╡┐└█╟╤┤┘.
- ╕┼╣° ├▀░í╖╬ ║╥╟╩┐Σ╟╤ <code>stat()</code> ░╦╗τ░í ╟╩┐Σ╟╧░φ
- └╘├Γ╖┬ ░¿╝╥╢≤┤┬ ┐°╖í └╟╡╡┐í ╣▌╟╧▒Γ╢º╣«┐í └╠ ╕≡╡Γ└║ ╞─└╧└╟
- ║»╚¡╕ª ╣½╜├╟╤┤┘.</p>
- </section>
-
- <section><title>CacheFile ┴÷╜├╛ε</title>
-
- <p><module>mod_file_cache</module>└╟ <directive
- module="mod_file_cache">CacheFile</directive> ┴÷╜├╛ε┤┬
- ╝│┴ñ ┴÷╜├╛ε┐í ┐¡░┼╟╤ ╞─└╧(░· ╞─└╧╡Θ)└╗ ┐¡╛ε╝¡ ╞─└╧└╟
- <em>╟┌╡Θ(handle)</em> ╚ñ└║ <em>╞─└╧ ▒Γ╝·└┌(file descriptor)</em>╕ª
- ─│╜¼┐í └·└σ╟╤┤┘. ╞─└╧└╗ ┐Σ├╗╟╧╕Θ ╝¡╣÷┤┬ ─│╜¼┐í╝¡ ╟┌╡Θ└╗
- ├ú╛╞╝¡ ╝╥─╧ API <code>sendfile()</code>┐í (└⌐╡╡┐∞┴ε┐í╝¡┤┬
- <code>TransmitFile()</code>) │╤▒Σ┤┘.</p>
-
- <!-- XXX
- <p>Insert more details about sendfile API...</p>
- -->
-
- <p>╝¡╣÷┤┬ ╜├└█╟╥╢º┐═ └τ╜├└█╟╥╢º╕╕ ╞─└╧ ╟┌╡Θ└╗ ─│╜¼╟╤┤┘.
- ▒╫╖í╝¡ ╞─└╧╜├╜║┼█┐í╝¡ ─│╜¼╟╤ ╞─└╧┴▀ ╟╧│¬╢≤╡╡ ║»░µ╡╟╕Θ
- ╝¡╣÷╕ª └τ╜├└█<em>╟╪╛▀</em> ╟╤┤┘ (<a
- href="../stopping.html">┴▀┤▄░· └τ╜├└█</a> ╣«╝¡ ┬ⁿ░φ).
- ┤┘╜├ ╕╗╟╪╝¡ ╞─└╧└╠ ║»░µ╡╟╛·┤┬╡Ñ ╝¡╣÷╕ª └τ╜├└█╟╧┴÷ ╛╩└╕╕Θ
- ┐╧└ⁿ╚≈ └╠╗≤╟╧░╘ ┐Σ├╗└╗ ╝¡║±╜║╟╥┴÷╡╡ ╕≡╕Ñ┤┘. └╠└ⁿ ╞─└╧└╗
- ┴÷┐∞░φ(unlink) ▒╫ └┌╕«┐í ╗⌡╖╬┐ε ╞─└╧└╗ ╕╕╡σ┤┬ ╣µ╜─└╕╖╬
- ╞─└╧└╗ ╝÷┴ñ╟╪╛▀ ╟╤┤┘. <code>rdist</code>│¬ <code>mv</code>┐═
- ░░└║ ┤δ┤┘╝÷└╟ ╡╡▒╕░í └╠╖▒ ╣µ╜─└╕╖╬ ╡┐└█╟╤┤┘.</p>
- </section>
-
- <note><title>┴╓└╟</title>
- <p>╡≡╖║┼Σ╕«└╟ ╕≡╡τ ╞─└╧└╗ └τ▒═└√└╕╖╬ ─│╜¼┐í └·└σ╟╧┤┬ ┴÷╜├╛ε┤┬
- ╛°┤┘. ┤δ╜┼ ┤┘└╜░· ░░└╠ ╟╪║╕╢≤... <directive
- module="core">Include</directive> ┴÷╜├╛ε╕ª ┬ⁿ░φ╟╧┐⌐ ┤┘└╜░·
- ░░└║ ╕φ╖╔╛ε╕ª ╜╟╟α╟╤┤┘:</p>
-
- <example>
- find /www/htdocs -type f -print \<br />
- | sed -e 's/.*/mmapfile &/' > /www/conf/mmap.conf
- </example>
- </note>
- </section>
-
- <directivesynopsis>
- <name>MMapFile</name>
- <description>╜├└█╜├ ┐⌐╖» ╞─└╧└╗ ╕▐╕≡╕«┐í ┤δ└└╟╤┤┘</description>
- <syntax>MMapFile <var>file-path</var> [<var>file-path</var>] ...</syntax>
- <contextlist><context>server config</context></contextlist>
-
- <usage>
- <p><directive>MMapFile</directive> ┴÷╜├╛ε┤┬ ╝¡╣÷░í ╜├└█╟╥╢º
- (░°╣Θ└╕╖╬ ▒╕║╨╟╤ ╛╞▒╘╕╒╞«╖╬ ┴÷┴ñ╟╤) ┐⌐╖» ╞─└╧└╗ ╕▐╕≡╕«┐í
- ┤δ└└╟╤┤┘(map). ╝¡╣÷ ┴╛╖ß╜├ └┌╡┐└╕╖╬ ┤δ└└└╗ ╟¼┤┘(unmap).
- ╞─└╧╜├╜║┼█┐í╝¡ ╞─└╧└╠ ║»░µ╡╟╕Θ ╞─└╧╡Θ└╗ ┤┘╜├
- <code>mmap()</code>╟╧▒Γ└º╟╪ ├╓╝╥╟╤ ╝¡╣÷┐í <code>HUP</code>└╠│¬
- <code>USR1</code> ╜├▒╫│╬└╗ ║╕│╗╛▀ ╟╤┤┘.</p>
-
- <p><var>file-path</var> ╛╞▒╘╕╒╞«╕ª ┴╢╜╔╟╪╢≤. ╛╞▒╘╕╒╞«┤┬
- ╛╞╞──í└╟ URL-╞─└╧╕φ ║»╚» ╟┌╡Θ╖»░í ╕╕╡τ ╞─└╧╜├╜║┼█ ░µ╖╬┐═
- ┴ñ╚«╚≈ └╧─í╟╪╛▀ ╟╤┤┘. ╟╤╣° ┤⌡ ║╥╟╩┐Σ╟╤ <code>stat()</code>
- ╜├╜║┼█╚ú├Γ└╠ ╟╩┐Σ╟╧▒Γ╢º╣«┐í inode│¬ ╜╔║╝╕╡┼⌐ <em>╡ε</em>└╗
- ░µ╖╬╕ª ┴÷┴ñ╟╥ ╝÷ ╛°┤┘. └╠ ╕≡╡Γ└║ <module>mod_alias</module>│¬
- <module>mod_rewrite</module>╖╬ └τ└█╝║╟╤ ╞─└╧╕φ└╗ ┤┘╖Ω ╝÷
- └╓▒Γ╡╡ ╛°▒Γ╡╡ ╟╧┤┘.</p>
-
- <example><title>┐╣┴ª</title>
- MMapFile /usr/local/apache/htdocs/index.html
- </example>
- </usage>
- </directivesynopsis>
-
- <directivesynopsis>
- <name>CacheFile</name>
- <description>╜├└█╜├ ┐⌐╖» ╞─└╧ ╟┌╡Θ└╗ ─│╜¼╟╤┤┘</description>
- <syntax>CacheFile <var>file-path</var> [<var>file-path</var>] ...</syntax>
- <contextlist><context>server config</context></contextlist>
-
- <usage>
- <p><directive>CacheFile</directive> ┴÷╜├╛ε┤┬ ╝¡╣÷░í ╜├└█╟╥╢º
- ┐⌐╖» ╞─└╧└╗ ┐¡░φ(open) ╞─└╧╡Θ└╟ ╟┌╡Θ└╗ ─│╜¼┐í └·└σ╟╤┤┘.
- ╝¡╣÷ ┴╛╖ß╜├ └┌╡┐└╕╖╬ ─│╜¼╟╤ ╞─└╧└╟ ╟┌╡Θ└╗ ┤▌┤┬┤┘(close).
- ╞─└╧╜├╜║┼█┐í╝¡ ╞─└╧└╠ ║»░µ╡╟╕Θ ╞─└╧└╗ ┤┘╜├ ─│╜¼╟╧▒Γ└º╟╪
- ╝¡╣÷╕ª └τ╜├└█╟╪╛▀ ╟╤┤┘.</p>
-
- <p><var>file-path</var> ╛╞▒╘╕╒╞«╕ª ┴╢╜╔╟╪╢≤. ╛╞▒╘╕╒╞«┤┬
- ╛╞╞──í└╟ URL-╞─└╧╕φ ║»╚» ╟┌╡Θ╖»░í ╕╕╡τ ╞─└╧╜├╜║┼█ ░µ╖╬┐═
- ┴ñ╚«╚≈ └╧─í╟╪╛▀ ╟╤┤┘. ╟╤╣° ┤⌡ ║╥╟╩┐Σ╟╤ <code>stat()</code>
- ╜├╜║┼█╚ú├Γ└╠ ╟╩┐Σ╟╧▒Γ╢º╣«┐í inode│¬ ╜╔║╝╕╡┼⌐ <em>╡ε</em>└╗
- ░µ╖╬╕ª ┴÷┴ñ╟╥ ╝÷ ╛°┤┘. └╠ ╕≡╡Γ└║ <module>mod_alias</module>│¬
- <module>mod_rewrite</module>╖╬ └τ└█╝║╟╤ ╞─└╧╕φ└╗ ┤┘╖Ω ╝÷
- └╓▒Γ╡╡ ╛°▒Γ╡╡ ╟╧┤┘.</p>
-
- <example><title>┐╣┴ª</title>
- CacheFile /usr/local/apache/htdocs/index.html
- </example>
- </usage>
- </directivesynopsis>
-
- </modulesynopsis>
-